<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>页面</title>
	<%
		String ifsuccess = (String)request.getAttribute("ifsuccess");
		//out.print("<script>alert('"+ifsuccess+"');window.close();parent.window.close;</script>");
	%>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <script language="javascript">
   
function GetArgsFromHref(sHref, sArgName) {
	var args = sHref.split("?");
	var retval = "";

	if (args[0] == sHref) {
		return retval;
	}
	var str = args[1];
	args = str.split("&");
	for (var i = 0; i < args.length; i++) {
		str = args[i];
		var arg = str.split("=");
		if (arg.length <= 1)
			continue;
		if (arg[0] == sArgName)
			retval = arg[1];
	}
	return retval;
}
    var ifsuccess = decodeURI(GetArgsFromHref(self.location.href, "ifsuccess1")); 
    if(ifsuccess =='')
      parent.showInfo('<%=ifsuccess%>');
      else
      parent.showInfo(ifsuccess);
      
      parent.closeTabPage();
    
   </script> 
  </body>
</html>